<?php
echo '<?xml version="1.0" encoding="UTF-8" />';
echo $this->doctype();
?>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<?php 
	echo $this->headTitle();
	$config = Zend_Registry::get('config');
	$this->headLink()->appendStylesheet($config->baseurl.'/css/reset.css');
	$this->headLink()->appendStylesheet($config->baseurl.'/css/layout.css');
	
	
	$this->headScript()->prependFile($config->baseurl.'/js/yaoqingka.js');
	$this->headScript()->prependFile($config->baseurl.'/js/jquery-1.4.2.min.js');
	
	echo $this->headLink();
	?>
	<title>打击好</title>
</head>
<body>
<div id="baseUrl"><?php echo $config->baseurl; ?></div>
<div id="header">
<a id="logo" href="<?php echo $this->url(array('controller'=>'index','action'=>'index'));?>">微茗阁</a>
<div id="navigation">
<div id="menu">
<ul>
  <li><a href="<?php echo $this->url(array('controller'=>'index','action'=>'index'));?>" id="menuHome">首页</a></li>
  <li class="separator"></li>
   <li><a href="/hall" id="menuHall">活动大厅</a></li>
   <li class="separator"></li>
  <li><a href="/demo" id="menuDemo">演示帮助</a></li>
  <li class="separator"></li>
   <li><a href="/about" id="menuAbout">关于</a></li>
</ul>
</div>
<div id="hr"></div>
<div id="dashboard">

<div id="leftcorner"></div>
<div id="dashboardcontent">
<?php 
 $userData = $this->loggedInUser();
 if ($userData == null) {?>
 <span id="notLoggedInField">	
 欢迎来到微茗阁，请您 <a href="<?php echo $this->url(array('controller'=>'user','action'=>'login')); ?>">登录 </a>
  或  <a href="<?php echo $this->url(array('controller'=>'user','action'=>'register')); ?>">注册</a></span>
<?php
} else {?>
<ul class="topNav">
<li><img src="<?php echo $config->baseurl.'/img/nopic_t.png'; ?>"/><span>我<?php // echo $userData->username;?></span>
<ul class="subNav" id="navProfile">
<li><a href="<?php echo $this->url(array('controller'=>'user','action'=>'index',),null,true); ?>">我的档案</a></li>
<li>我的消息</li>
</ul>
</li>
<img src="<?php echo $config->baseurl.'/img/grey.png';?>" width="1px" height="8px" class="separator" />
<li><span>活动</span>
<ul class="subNav">
<li><a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'create')); ?>">新建活动</a></li>
<li><a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'createhistory')); ?>">我建立的活动</a></li>
<li>我受邀的活动</li>
<li>我参加的活动</li>
</ul>
</li>
<img src="<?php echo $config->baseurl.'/img/grey.png';?>" width="1px" height="8px" class="separator" />
<li><span>好友</span>
<ul class="subNav">
<li><a href='<?php echo $this->url(array('controller'=>'user', 'action'=>'showfriendrequest')); ?>'>好友请求</a></li>
<li><a href="<?php echo $this->url(array('controller'=>'user', 'action'=>'friend'))?>">我的好友</a></li>
<li>查找好友</li>
<li>邀请好友加入</li>
<li><a href="<?php echo $this->url(array('controller'=>'contact', 'action'=>'mycontact'))?>">我的地址簿</a></li>
</ul>
</li>
<img src="<?php echo $config->baseurl.'/img/grey.png';?>" width="1px" height="8px" class="separator" />
<li><span>设置</span>
<ul class="subNav">
<li>档案设置</li>
<li>隐私设置</li>
</ul>
</li>
<img src="<?php echo $config->baseurl.'/img/grey.png';?>" width="1px" height="8px" class="separator" />
<li><span><a href="<?php echo $this->url(array('controller'=>'user','action'=>'logout')); ?>">离开</a></span></li>
<img src="<?php echo $config->baseurl.'/img/grey.png';?>" width="1px" height="8px" class="separator" />
<li style="float:right;"><span id="searchField">
<form method="post" action="<?php echo $this->url(array('controller'=>'search', 'action'=>'searchresult'))?>">
	<input id="searchBox" type="input" name="searchKey"></input>
	<input type="submit" id="searchButton" value="search"></input>
</form>
</span></li>
</ul>


<!--

  <a href="<?php echo $this->url(array('controller'=>'user','action'=>'index'),null,true); ?>"><?php echo $userData->username;?>的档案</a> 
<span>| </span>  <a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'createhistory'),null,true); ?>">您建立的邀请</a>
<span>| </span>	<a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'create'),null,true); ?>">新建邀请卡</a> 
 <span>|</span>	<a href="<?php echo $this->url(array('controller'=>'user','action'=>'logout'),null,true); ?>">离开</a>
  <span></span>
--><?php }
 
	//echo $this->action('loginmenu','user'); ?>
</div>
<div id="rightcorner"></div>
</div>
</div>
</div>
<div id="contentwrap">
<div id="contenttleft"></div>
<div id="contenttop"></div>
<div id="contenttright"></div>
<div id="content">
<?php if ($this->pageTitle != null)
{
?>
<div id="contenttitle">
	<h1 class="<?php echo $this->pageTitleClass; ?>" ><?php echo $this->pageTitle; ?></h1>
	<span class="bubble"></span>	
</div>
<?php 

}
?>
<div id="contentinner"><?php 

echo $this->layout()->content;

?></div>
<div id="footer">
© 2010 weimingge.com, All Rights Reserved -  
<a>版权声明</a> -
<a>联系我们</a>
</div>
</div>
<div id="contentbleft"></div>
<div id="contentbottom"></div>
<div id="contentbright"></div>
</div>



</body>
<?php echo $this->headScript();?>